#!/bin/sh

set -e
set -u

THISDIR=$(dirname $0)

# The expression ${VAR:-TEXT} expands to:
#  If VAR is null or empty => TEXT
#  If VAR is non-empty => ${VAR}
# So: If DOTNET_HOST_PATH is set, use it, otherwise use unqualified dotnet
HOST_PATH=${DOTNET_HOST_PATH:-dotnet}

exec "${HOST_PATH}" "$THISDIR/vbc.dll" "$@"
